#ifndef GENGX_H
#define GENGX_H

#include <QWidget>
#include <QLineEdit>
#include <QComboBox>
#include <QLine>
#include <QTableView>
#include <QSqlTableModel>
#include <QPushButton>


namespace Ui {
class gengx;
}

class gengx : public QWidget
{
    Q_OBJECT

public:
    explicit gengx(QWidget *parent = 0);
    ~gengx();
    void massage_clear();
    void massage_show();
    QLineEdit *le_name;
    QLineEdit *le_depart;
    QLineEdit *le_wid;
    QLineEdit *le_time;
    QLineEdit *le_image;
    QComboBox *cbb_six;
    QPushButton *pb_sure;
private slots:
    void on_pb_sure_clicked();

    void on_pb_delete_clicked();
signals:
    void dataUpdated();
private:
    Ui::gengx *ui;
    QSqlTableModel *model;
    QSqlDatabase data_s;
};

#endif // GENGX_H
